package org.dromara.vehicle.modules.vehicle.domain.bo;

import org.dromara.vehicle.modules.vehicle.domain.VehicleAnnualInspectionRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 车辆年检记录业务对象 vehicle_annual_inspection_record
 *
 * @author ckk
 * @date 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = VehicleAnnualInspectionRecord.class, reverseConvertGenerate = false)
public class VehicleAnnualInspectionRecordBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 关联车辆基本信息表ID
     */
    @NotNull(message = "关联车辆基本信息表ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long vehicleId;

    /**
     * 年检日期
     */
    private Date inspectionDate;

    /**
     * 年检结果
     */
    private String inspectionResult;

    /**
     * 有效期开始日期
     */
    private Date validityBeginDate;

    /**
     * 有效期截止日期
     */
    private Date validityEndDate;


}
